package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-28
 */
@Data
@TableName("grade_custom_rule_weeks")
@ApiModel(value = "GradeCustomRuleWeeks对象", description = "")
public class GradeCustomRuleWeeks implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("对应grade_custom_set表id")
    private Long gradeCustomSetId;

    @ApiModelProperty("年级id")
    private Integer yearClassId;

    @ApiModelProperty("周几上课，如周一：1,周二：2,周三：3,周四：4,周五：5,周六：6,周日：0")
    private Integer weekDates;

    private Long createdId;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;


}
